<div class="form">

	<?php
		$form=$this->beginWidget('CActiveForm', array(
			'id'=>'artiste-form',
			'enableAjaxValidation'=>false,
		));
	?>

	 <?php echo $form->errorSummary($model); ?> 
	
	<table class="table_form_inscription">
		<tr>
			<td class="champ_form_inscription" colspan=4>
				<?php echo $form->hiddenField($model,'id_client',array('value'=>Client::getClientFromUser()->id,'size'=>1,'maxlength'=>1)); ?>
				<?php echo $form->hiddenField($model,'id_paypal',array('size'=>11,'maxlength'=>11)); ?>
				<?php echo $form->hiddenField($model,'id_virement',array('size'=>11,'maxlength'=>11)); ?>
			</td>
		</tr>
		<tr>
			<td class="libelle_form_inscription" valign=top><?php echo $form->labelEx($model,'description'); ?></td>
			<td class="separateur" valign=top>:</td>
			<td class="champ_form_inscription"><?php echo $form->textArea($model,'description',array('size'=>60,'maxlength'=>500)); ?></td>
			<td class="erreur_form_inscription" id="erreurDescriptionFormInscriptionArtiste"><?php echo $form->error($model,'description'); ?></td>
		</tr>
		<tr>
			<td class="libelle_form_inscription"><?php echo $form->labelEx($model,'siteweb'); ?></td>
			<td class="separateur">:</td>
			<td class="champ_form_inscription"><?php echo $form->textField($model,'siteweb',array('size'=>60,'maxlength'=>500)); ?></td>
			<td class="erreur_form_inscription" id="erreurSiteFormInscriptionArtiste"><?php echo $form->error($model,'siteweb'); ?></td>
		</tr>
		<tr>
			<td class="libelle_form_inscription"><?php echo $form->labelEx($model,'facebook'); ?></td>
			<td class="separateur">:</td>
			<td class="champ_form_inscription"><?php echo $form->textField($model,'facebook',array('size'=>60,'maxlength'=>500)); ?></td>
			<td class="erreur_form_inscription" id="erreurFacebookFormInscriptionArtiste"><?php echo $form->error($model,'facebook'); ?></td>
		</tr>
		<tr>
			<td class="libelle_form_inscription"><?php echo $form->labelEx($model,'twitter'); ?></td>
			<td class="separateur">:</td>
			<td class="champ_form_inscription"><?php echo $form->textField($model,'twitter',array('size'=>60,'maxlength'=>500)); ?></td>
			<td class="erreur_form_inscription" id="erreurTwitterFormInscriptionArtiste"><?php echo $form->error($model,'twitter'); ?></td>
		</tr>
		<tr>
			<td class="libelle_form_inscription"><?php echo $form->labelEx($model,'paiement'); ?></td>
			<td class="separateur">:</td>
			<td class="champ_form_inscription"><table><tr><td><?php echo $form->radioButtonList($model,'paiement',array('Paypal'=>'Paypal','Virement'=>'Virement'),array('separator'=>'</td><td>')); ?></td></tr></table></td>
			<td class="erreur_form_inscription" id="erreurPaiementFormInscriptionArtiste"><?php echo $form->error($model,'paiement'); ?></td>
		</tr>
		<tr>
			<td class="libelle_form_inscription"><?php echo $form->labelEx($model,'cgv'); ?></td>
			<td class="separateur">:</td>
			<td class="champ_form_inscription">
				<?php echo $form->checkBox($model,'cgv',array('size'=>1, 'maxlength'=>1)); ?>
				J'accepte les conditions générales de vente ArtAndCo.fr
			</td>
			<td class="erreur_form_inscription" id="erreurConditionsFormInscriptionArtiste"><?php echo $form->error($model,'cgv'); ?></td>
		</tr>
		<tr>
			<!--  La balise valid est initialisée à 0 lors de la crétion d'un artiste. Elle sera affectée à la valeur 1 une fois le mail de confirmation accepté. -->
			<td class="champ_form_inscription" colspan=4><?php echo $form->hiddenField($model,'valid',array('value'=>'1','size'=>1,'maxlength'=>1)); ?></td>
		</tr>
		<tr>
			<td class="bouton_form_inscription" colspan=4><?php echo CHtml::submitButton($model->isNewRecord ? 'Etape suivante' : 'Etape suivante'); ?></td>
		</tr>
	</table>

<?php $this->endWidget(); ?>

</div><!-- form -->